import os
from multiprocessing import Process


def func1(name):
    print(f'当前进程id: {os.getpid()}')


if __name__ == '__main__':
    print('当前进程id',os.getpid())
    #创建进程
    p1 = Process(target=func1,args=('进程1',))
    p1.start()